package comprehension.cn.edu.scau.cmi.huxiantao.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextFactory {
	private static ApplicationContext context;
	
	public static ApplicationContext getContext() {
		if(context==null) {
			context=new ClassPathXmlApplicationContext("comprehension/ApplicationContext.xml");
		}
		return context;
	}
	
}
